package main

import (
	"fmt"
	"jassue-gin/bootstrap"
	"jassue-gin/global"
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	bootstrap.InitializeConfig()
	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(http.StatusOK, gin.H{
			"message": "pong",
		})
	})
	fmt.Println("端口号：" + global.App.Config.App.Port)
	r.Run(":" + global.App.Config.App.Port)

}
